package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("新增问答评论")
@Data
public class SaveQuestionCommentDTO {

    @ApiModelProperty("问答id")
    @Min(value = 1,message = "id应该大于1")
    @NotNull(message = "问答id不能为空")
    private Integer  questionId;

    @ApiModelProperty("评论内容")
    @NotBlank(message = "评论内容不能为空")
    private String content;
}
